package com.chatroom.enity;

/**
 * @author 计算机系 ITAEM 纱雾休比我老婆
 * @Description 服务器发送给浏览器的websocket数据
 * @date 2022/8/9 1:17
 */
public class ResultMessage {

    private boolean isSystem;//true表明为系统消息，否则表面为推送給某个人
    private String fromName;
    private Object message;

    public ResultMessage() {
    }

    public ResultMessage(boolean isSystem, String fromName, Object message) {
        this.isSystem = isSystem;
        this.fromName = fromName;
        this.message = message;
    }

    public boolean getIsSystem() {
        return isSystem;
    }

    public void setIsSystem(boolean system) {
        isSystem = system;
    }

    public String getFromName() {
        return fromName;
    }

    public void setFromName(String fromName) {
        this.fromName = fromName;
    }

    public Object getMessage() {
        return message;
    }

    public void setMessage(Object message) {
        this.message = message;
    }
}
